package com.jumi.microservice.common.config.rocketmq.configuration;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * - - - - - - - - - - - - - - -
 *
 * @author liuz
 * @date 2020/7/25 09:15
 * ToDoSomeThing
 * - - - - - - - - - - - - - - -
 */
@Component
public class MqConfig {

    /**
     * mq分组
     */
    @Value("${mq.log.groupId}")
    private String groupId;

    /**
     * mq消息tag
     */
    @Value("${mq.log.logTag}")
    private String logTag;

    /**
     * mq消息topic
     */
    @Value("${mq.log.logTopic}")
    private String logTopic;

    /**
     * mq消息消费线程数
     */
    @Value("${mq.log.threadNum}")
    private Integer threadNum;

    @Value("${aliyun.rocket-mq.accessKey}")
    private String accessKey;

    @Value("${aliyun.rocket-mq.secretKey}")
    private String secretKey;

    @Value("${aliyun.rocket-mq.nameSrvAddr}")
    private String nameSrvAddr;

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getLogTag() {
        return logTag;
    }

    public void setLogTag(String logTag) {
        this.logTag = logTag;
    }

    public String getLogTopic() {
        return logTopic;
    }

    public void setLogTopic(String logTopic) {
        this.logTopic = logTopic;
    }

    public Integer getThreadNum() {
        return threadNum;
    }

    public void setThreadNum(Integer threadNum) {
        this.threadNum = threadNum;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getNameSrvAddr() {
        return nameSrvAddr;
    }

    public void setNameSrvAddr(String nameSrvAddr) {
        this.nameSrvAddr = nameSrvAddr;
    }
}
